package com.haoyeteng.sxbd.core.base.model;

/**
 * 报错类
 * @author 理想
 *
 */
public enum Code {

	SUCCESS("操作成功", 0), 
	ERROR("操作失败", -1),
	SYSTEM_ERROR("系统错误,请联系管理员", (short) -98),
	IS_NULL("数据不存在", (short) -3);
	/*INVALID_SESSIONID("无效的SessionId", (short) -1), 
	NEED_LOGIN("用户未登录", (short) -2), 
	IS_NULL("数据不存在", (short) -3), 
	OTHER("其他错误",(short) -98), 
	UNKNOWN("未知错误", (short) -99);*/
	
	String text;

	int value;

	private Code(String text, int value) {
		this.text = text;
		this.value = value;
	}

	public String getText() {
		return this.text;
	}

	public int getValue() {
		return this.value;
	}
}
